package cn.ticket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.ticket.model.Busorder;
@Repository 
@Transactional
public interface BusorderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Busorder record);

    int insertSelective(Busorder record);

    Busorder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Busorder record);

    int updateByPrimaryKey(Busorder record);
    
    int seatOccupationAdd1(@Param("id")int id);
    
    int seatOccupationRemove1(@Param("id")int id);
    
    List<Busorder> getAll();
    
    List<Busorder> getByCount(@Param("start")int start,@Param("count")int count);
    
    List<Busorder> getValideOrder0(@Param("endTime")String endTime);
    
    List<Busorder> getValideOrder1(@Param("endTime")String endTime);
    
    List<Busorder> getValidateOrders();
    
    List<Busorder> getInvalidateOrders();
}